<template>
  <div class="remindbar" :style="styles">
    <mt-cell :title="text" class="remindCell">
      <mt-spinner type="fading-circle"></mt-spinner>
    </mt-cell>
  </div>
</template>

<script>
export default {
  props:{
    text: {
      type: String,
      required: true,
      default: '加载中...'
    },
    bgColor: {
      type: String,
      default: '#dd0000'
    },
    color: {
      type: String,
      default: '#ccc'
    }
  },
  computed: {
    styles(){
      return {
        backgroundColor: this.bgColor,
        color: this.color
      }
    }
  }
}
</script>

<style scoped>
.remindbar{
  position: fixed;
  left: 0;
  bottom: 50px;
  width: 100%;
}
.remindCell{
  background: rgba(0, 0, 0, 0);
}
</style>
